package net.suncaper.demo.service;

import net.suncaper.demo.domain.Order;

import java.util.List;

public interface OrderService {

    String waitPay = "waitPay";
    String waitDelivery = "waitDelivery";
    String waitConfirm = "waitConfirm";
    String waitReview = "waitReview";
    String finish = "finish";
    String delete = "delete";


    List<Order> findOrder();

    void saveUpdateOrderMes(Order order);

    void delOrderBySIdMes(int orderId);//通过id取消商品

    void editOrderMes(Order order);//编辑商品信息

    public Order findOrderByOId(int orderId);//通过order—id查找商品

    void saveAddOrderMes(Order order);//添加到购物车

    public List<Order> findorderbyUid(int userId);

    public List<Order> findorderbyProduct(int productId);//根据商品Id查订单（YWY写的）
}
